package jnpf.model.objRelation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "关系图对象，包含图的基本属性和元素")
public class Graph {
    @ApiModelProperty(value = "是否为有向图（true表示有向，false表示无向）", example = "true")
    private boolean directed;

    @ApiModelProperty(value = "是否为多重图（true表示多重图，false表示简单图）", example = "false")
    private boolean multigraph;

    @ApiModelProperty(value = "图中所有边的集合")
    private java.util.List<Edge> edges;

    @ApiModelProperty(value = "图中所有节点的集合")
    private java.util.List<Node> nodes;

    @ApiModelProperty(value = "图的元信息（如自定义属性或扩展数据）")
    private GraphInner graph;
}